package com.czkt.springboot_mybatis_test.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.czkt.springboot_mybatis_test.entity.SysRight;
import com.czkt.springboot_mybatis_test.entity.SysRole;
import com.czkt.springboot_mybatis_test.entity.vo.RoleRight;
import com.czkt.springboot_mybatis_test.mapper.SysRightMapper;
import com.czkt.springboot_mybatis_test.service.ISysRightService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2024-06-18
 */
@Service
public class SysRightServiceImpl extends ServiceImpl<SysRightMapper, SysRight> implements ISysRightService {
    @Resource
    SysRightMapper sysRightMapper;

    @Override
    public List<SysRight> selectRoleRight() {
        return sysRightMapper.selectRoleRight();
    }

    @Override
    public void toInsertRoleRight(SysRole sysRole) {
        sysRightMapper.toInsertRoleRight(sysRole);
    }

    @Override
    public SysRole selectRoleId() {
        return sysRightMapper.selectRoleId();
    }
}
